﻿using SheepStorage.Domain.Dto.InputDto;
using SheepStorage.Domain.Dto.Output;
using SheepStorage.Domain.DTO.Output;
using SheepStorage.Domain.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Transactions;

namespace SheepStorage.Service.Interface
{
    public interface ISheepPurchaseService
    {
        /// <summary>
        /// 羊只采购列表
        /// </summary>
        /// <returns></returns>
        Task<PageOutput<SheepPurchase>> GetSheepPurchase(SheepPurchaseInput input);


        /// <summary>
        /// 羊只采购添加
        /// </summary>
        /// <param name="purchase"></param>
        /// <returns></returns>
        Task<int> SheepPurchaseAdd(List<SheepPurchase> purchase);




        /// <summary>
        /// 批量删除/逻辑删除
        /// </summary>
        /// <param name="idList"></param>
        /// <returns></returns>
        Task<int> DeleteSheepPurchase(params int[] idList);



        /// <summary>
        /// 获取羊只采购单条数据
        /// </summary>
        /// <param name="purchaseId"></param>
        /// <returns></returns>
        Task<SheepPurchase> GetSheepPurchaseInfo(int purchaseId);



        /// <summary>
        /// 修改羊只采购信息
        /// </summary>
        /// <param name="purchase"></param>
        /// <returns></returns>
        Task<int> UpdateSheepPurchase(SheepPurchase purchase);

    }
}
